<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1,minimum-scale=1">
	<title>bootstap后台练习1</title>
	<link rel="stylesheet" type="text/css" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="css/reset.css">
  <link rel="stylesheet" type="text/css" href="css/b3-demo2-user.css">
</head>
<body>
<!-- 这是导航部分 -->
<nav class="navbar navbar-default mynavbar">
  <div class="container">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Maizi Admin</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav mynavbar-left">
        <li><a href="boothoutai.html"><span class="glyphicon glyphicon-home"></span>后台首页</a></li>
        <li class="active"><a href="boothoutai-user.html"><span class="glyphicon glyphicon-user"></span>用户管理</a></li>
        <li><a href="boothoutai-content.html"><span class="glyphicon glyphicon-list-alt"></span>内容管理</a></li>
        <li><a href="boothoutai-tag.html"><span class="glyphicon glyphicon-tags"></span>标签管理</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">admin<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="#"><span class="glyphicon glyphicon-screenshot"></span>&nbsp&nbsp前台首页</a></li>
            <li><a href="#"><span class="glyphicon glyphicon-user"></span>&nbsp&nbsp个人主页</a></li>
            <li><a href="#"><span class="glyphicon glyphicon-cog"></span>&nbsp&nbsp个人设置</a></li>
            <li><a href="#"><span class="glyphicon glyphicon-credit-card"></span>&nbsp&nbsp账户中心</a></li>
            <li><a href="#"><span class="glyphicon glyphicon-heart"></span>&nbsp&nbsp我的收藏</a></li>
          </ul>
        </li>
        <li><a href="#"><span class="glyphicon glyphicon-off"></span>&nbsp&nbsp退出</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<!-- 这是导航部分 -->

<!-- 主要部分 -->
<main class="usermainpart">
  <div class="container">
    <div class="row">
      <div class="col-md-2">
        <ul class="nav nav-pills nav-stacked" id="selleft">
            <li role="presentation" class="active"><a href="#home" data-toggle="tab">用户管理</a></li>
            <li role="presentation"><a href="#profile" data-toggle="tab">用户搜索</a></li>
            <li role="presentation"><a href="#messages" data-toggle="modal" data-target="#myModal">添加用户</a></li>
        </ul>
      </div>
      <div class="col-md-10">
        <div>
          <h4>用户管理</h4>
          <hr>

          <!-- Nav tabs -->
          <ul class="nav nav-tabs" role="tablist" id="seltop">
            <li role="presentation" class="active"><a href="#home" data-toggle="tab">用户列表</a></li>
            <li role="presentation"><a href="#profile" data-toggle="tab">用户搜索</a></li>
            <li role="presentation"><a href="#messages" data-toggle="modal" data-target="#myModal">添加用户</a></li>
          </ul>

          <!-- Tab panes -->
          <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="home">
              <table class="table table-hover">
                <thead>
                  <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>邮箱</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                   <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                   <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                   <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                   <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                   <tr>
                    <td>1</td>
                    <td>张三</td>
                    <td>123456789@maiziedu.com</td>
                    <td>
                      <div class="dropdown">
                        <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                          操作
                          <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                          <li><a href="#">编辑</a></li>
                          <li><a href="#">删除</a></li>
                          <li><a href="#">锁定</a></li>
                          <li><a href="#">修改密码</a></li>
                        </ul>
                      </div>
                    </td>
                  </tr>
                </tbody>
              </table>
              <nav aria-label="Page navigation" class="pull-right">
                <ul class="pagination">
                  <li>
                    <a href="#" aria-label="Previous">
                      <span aria-hidden="true">&laquo;</span>
                    </a>
                  </li>
                  <li class="active"><a href="#">1</a></li>
                  <li><a href="#">2</a></li>
                  <li><a href="#">3</a></li>
                  <li><a href="#">4</a></li>
                  <li><a href="#">5</a></li>
                  <li>
                    <a href="#" aria-label="Next">
                      <span aria-hidden="true">&raquo;</span>
                    </a>
                  </li>
                </ul>
              </nav>
            </div>
            <div role="tabpanel" class="tab-pane" id="profile">
              <div class="alert alert-info" role="alert">
              技巧提示： 支持模糊搜索和匹配搜索，匹配搜索使用*代替！
              </div>
              <form action="#">
                <div class="form-group">
                   <label for="exampleInputEmail1">用户名</label>
                   <input type="text" class="form-control" id="exampleInputEmail1" placeholder="请输入用户名">
                 </div>
                 <div class="form-group">
                   <label for="exampleInputEmail2">UID</label>
                   <input type="text" class="form-control" id="exampleInputEmail2" placeholder="请输入用户UID">
                 </div>
                 <div class="form-group">
                    <label for="exampleInputEmail3">选择用户组</label>
                    <select class="form-control" id="exampleInputEmail3">
                      <option>限制会员</option>
                      <option>新手上路</option>
                      <option>注册会员</option>
                      <option>中级会员</option>
                      <option>高级会员</option>
                    </select>
                 </div>
                 <button class="btn btn-default">提交</button>
              </form>
            </div>
            <div role="tabpanel" class="tab-pane" id="messages"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</main>
<!-- 主要部分 -->


<!-- 底部部分 -->
 <footer class="footpart">
 	<p class="text-center">Copyright © 2012-2015  www.maiziedu.com  蜀ICP备13014270号-4</p>
 </footer>
<!-- 底部部分 -->

<!-- 模态框部分 -->
<div class="modal fade" tabindex="-1" id="myModal">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">添加用户</h4>
      </div>
      <div class="modal-body">
        <form action="#">
          <div class="form-group">
             <label for="exampleInputEmail1">用户名</label>
             <input type="email" class="form-control" id="exampleInputEmail1" placeholder="用户名">
           </div>
           <div class="form-group">
             <label for="exampleInputEmail1">用户名</label>
             <input type="email" class="form-control" id="exampleInputEmail1" placeholder="用户名">
           </div>
           <div class="form-group">
             <label for="exampleInputEmail1">用户名</label>
             <input type="email" class="form-control" id="exampleInputEmail1" placeholder="用户名">
           </div>
           <div class="form-group">
             <label for="exampleInputEmail1">用户名</label>
             <input type="email" class="form-control" id="exampleInputEmail1" placeholder="用户名">
           </div>
           <div class="form-group">
              <label for="exampleInputEmail3">选择用户组</label>
              <select class="form-control" id="exampleInputEmail3">
                <option>限制会员</option>
                <option>新手上路</option>
                <option>注册会员</option>
                <option>中级会员</option>
                <option>高级会员</option>
              </select>
           </div>
        </form>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="button" class="btn btn-primary">提交</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div>
<!-- 模态框部分 -->


<script src="lib/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script>
$(function(){
  $("#selleft li").on("click",function(){
    if($(this).index() == 2){
      return;
    }
    $("#seltop li").eq($(this).index()).addClass("active").siblings().removeClass("active");
  });

  $("#seltop li").on("click",function(){
    if($(this).index() == 2){
      return;
    }
    $("#selleft li").eq($(this).index()).addClass("active").siblings().removeClass("active");
  });
})
</script>
</body>
</html>